<?php
mysql_pconnect('localhost', 'root', '');
mysql_select_db('chat');

# path
$path = getenv("DOCUMENT_ROOT");
$dir  = getenv("SCRIPT_NAME");
$dir  = substr($dir, 0, (strlen($dir) - strlen(basename($dir))));

// Combineren
if (!empty($dir))
	$path .= $dir;

define("path", $path);

require_once(path . "inc/action.php");
require_once(path . "inc/io.php");
require_once(path . "inc/model.php");
require_once(path . "inc/main.php");

?>